package com.mxpio.erp.common.mes.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name="MB_ERP_MES_WORKORDER_TASK_SN")
@EqualsAndHashCode(callSuper=false)
@Entity
@Schema(description="生产订单-工单-工序任务详情sn")
@AllArgsConstructor
@NoArgsConstructor
public class ManufactureWorkOrderTaskSn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "SN_CODE_")
    @Schema(description = "sn号")
    private String snCode;

    /**生产订单主键*/
    @Column(name = "BIZ_NO_", updatable = false)
    @Schema(description = "生产订单单号")
    private String bizNo;

    /**批次（工单）号*/
    @Column(name = "BATCH_CODE_")
    @Schema(description = "批次（工单）号")
    private String batchCode;

    @Column(name = "TASK_CODE_")
    @Schema(description = "工单任务编号")
    private String taskCode;
    /**打印次数*/
    @Schema(description = "打印次数")
    @Column(name = "PRINT_NUM_" )
    private Integer printNum;
}
